using System.Collections;
using System.Collections.Generic;
using UnityEngine;

namespace KFGame
{
    public class IKFKeyBoardEvent
    {
        public virtual void OnEnable()
        {
            KeyboardSimulation.addListen(this);
        }
        public virtual void OnDisable()
        {
            KeyboardSimulation.removeListen(this);
        }

        /// <summary>
        /// 按下只进行一次
        /// </summary>
        /// <param name="code"></param>
        public virtual void OnKeyDown(KeyCode code)
        {

        }

        /// <summary>
        /// 按住运行
        /// </summary>
        /// <param name="code"></param>
        public virtual void OnKeyHoldDown(KeyCode code)
        {

        }

    }
}
